package com.bocloud.cmp.interfaces.resource;

import java.util.List;
import java.util.Map;

import com.bocloud.cmp.model.RouteBean;
import com.bocloud.common.model.BsmResult;
import com.bocloud.common.model.Param;

public interface RouteService {

	/**
	 * 列表展示
	 * 
	 * @param page
	 * @param rows
	 * @param params
	 * @param sorter
	 * @param simple
	 * @return
	 */
	public BsmResult list(int page, int rows, List<Param> params, Map<String, String> sorter, Boolean simple);

	/**
	 * 创建
	 * 
	 * @param params
	 * @return
	 */
	public BsmResult create(String params);

	/**
	 * 删除
	 * 
	 * @param id
	 * @param userId
	 * @return
	 */
	public BsmResult remove(Long id);

	/**
	 * 编辑
	 * 
	 * @param bean
	 * @return
	 */
	public BsmResult modify(RouteBean bean);

	/**
	 * 详情
	 * 
	 * @param id
	 * @return
	 */
	public BsmResult detail(Long id);
}
